<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="../template/layout.xhtml">
	<ui:define name="titulo">Maturidade Global</ui:define>

	<ui:define name="frConteudo">
	<center>
		<h:form>
			<h:panelGrid columns="1" border="0" height="100%">
				<!-- bloco de edição -->
				<p:panel header="#{sigmaDmfasControle.tituloPagina}"
					rendered="#{sigmaDmfasControle.estadoCrud}">
					<h:panelGrid columns="2" border="1">
						<f:facet name="header">
							<p:messages id="msgErro" />
						</f:facet>

						<h:outputLabel value="#{msg.tipoSolucaoCodigo}" for="codigoTipo" />
<!--
						<h:outputLabel value="Data de Início" for="dataInicio" />
						<p:calendar id="dataInicio" value="#{sigmaDmfasControle.date1}"
							showButtonPanel="true" label="#{msg.tipoSolucaoCodigo}" required="true"
							requiredMessage="#{msg.tipoSolucaoCodigoRequiredMessage}" />

						 
				<h:outputLabel value="#{msg.grupoDesignacao}" for="descricaoGrupo" />
                <h:selectOneMenu id="descricaoGrupo" value="#{tipoOcorrenciaControle.tipoOcorrencia.grupoOcorrencia}" required="true" requiredMessage="#{msg.grupoDesignacaoRequiredMessage}">
                    <f:selectItems value="#{grupoOcorrenciaControle.itemsAvailableSelectOne}"/>
                </h:selectOneMenu>
 -->
						<f:facet name="footer">
							<h:panelGroup>
								<center>
									<h:commandButton id="salvarButton" value="#{msg.salvarButton}"
										action="#{sigmaDmfasControle.gravar}"
										rendered="#{sigmaDmfasControle.estadoAdicionar}" />
									<h:commandButton id="alterarButton"
										value="#{msg.alterarButton}"
										action="#{sigmaDmfasControle.gravar}"
										rendered="#{sigmaDmfasControle.estadoActualizar}" />
									<h:commandButton id="eliminarButton"
										value="#{msg.eliminarButton}"
										action="#{sigmaDmfasControle.eliminar}"
										rendered="#{sigmaDmfasControle.estadoEliminar}"
										onclick="if(!confirm('Confirma a exclusão do registo?')) return false;" />
									<h:commandButton id="limparButton" value="#{msg.limparButton}"
										type="reset" rendered="#{sigmaDmfasControle.estadoAdicionar}" />
									<h:commandButton id="cancelarButton"
										value="#{msg.cancelarButton}"
										action="#{sigmaDmfasControle.voltar}" immediate="true" />
								</center>
							</h:panelGroup>
						</f:facet>
					</h:panelGrid>
				</p:panel>
				<!-- fim do bloco de edição -->
			</h:panelGrid>
		</h:form>
		</center>
	</ui:define>
</ui:composition>
</html>